package com.smartcampusbackend.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("system_log")
public class SystemLog {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private Integer userId;
    private String username;
    private String logType; // LOGIN, OPERATION, DATA, ERROR
    private String action;
    private String description;
    private String ipAddress;
    private String userAgent;
    private String requestUrl;
    private String requestMethod;
    private String requestParams;
    private Integer responseStatus;
    private String errorMessage;
    private Long executionTime;
    private String status; // SUCCESS, FAILED
    private LocalDateTime createTime;
} 